﻿using System.Runtime.InteropServices;

namespace System
{
    public static class OSInformation
    {
        /// <summary>
        /// 是否Windows系统
        /// </summary>
        /// <returns></returns>
        public static bool IsWindows()
        {
            if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
            {
                return true;
            }

            return false;
        }
    }
}
